# -*- coding: utf-8 -*-
"""
Created on Sun Oct 13 22:58:53 2019

@author: ASUS
"""
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0,5,50)
y1 = x * 2 + 1
y2 = x ** 2

plt.figure()
plt.plot(x,y2)
plt.plot(x,y1,color='pink')

plt.xlim((1,3))
plt.ylim((0,10))
plt.xlabel('I am x')
plt.ylabel('I am y')

new_ticks = np.linspace(-1,2,5)
print(new_ticks)
plt.xticks(new_ticks)
plt.yticks([2,3,4,5,6,7],[r'$Fa\ a$',r'$E\alpha$','$D$',r'$C$',r'$B$',r'$A$'])

ax = plt.gca()
ax.spines['right'].set_color('none')



plt.show()
